package  
{
	import org.flixel.*;
	public class laserPulse extends FlxSprite
	{
		[Embed(source = '../content/acidcouch_laser_3.png')] private var laserExplosion:Class;
		public function laserPulse() 
		{
			super(40, 25);
			this.loadRotatedGraphic(laserExplosion, 30);
			this.scale.x = 0.8;
			this.scale.y = 2;
			this.flicker(5);
		}
		
		override public function update():void {
			if (this.flickering() == false)
			{
				this.flicker(5);
			}
			if (this.scale.x < 3.4)
			{
				this.scale.x = 1.2 * this.scale.x;
			}
			
			if (this.scale.x >= 3.4)
			{
				this.scale.x = 2;
			}
				
			
			super.update();
			
		}
	}
}